//
//  TaoTuTableViewCell.m
//  装修管家
//
//  Created by 千锋 on 16/1/20.
//  Copyright (c) 2016年 IOS1503薛凯. All rights reserved.
//

#import "TaoTuTableViewCell.h"
#import "UIImageView+WebCache.h"
#import "InfoModel.h"
@implementation TaoTuTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)relayoutWithModel:(SYSecondModel *)model{
    for (int i=0; i<model.info.count; i++) {
        if (i==0) {
            [_firstimage sd_setImageWithURL:[NSURL URLWithString:((InfoModel*)(model.info[0])).filename]];
        }else if (i==1){
            [_secondimage sd_setImageWithURL:[NSURL URLWithString:((InfoModel*)(model.info[1])).filename]];
        }else if (i==2){
            [_thirdimage sd_setImageWithURL:[NSURL URLWithString:((InfoModel*)(model.info[2])).filename]];
        }
    }
    self.title.text=model.title;
    self.datetitle.text=model.edittime;
    [self.watch setTitle:model.oldcid forState:UIControlStateNormal];
}
@end
